* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
    #page {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
    
header {
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #ffffff;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
    flex-shrink: 0;
    z-index: 1001;
}

.logo {
    height: 50px;
    width: auto;
}

.nav-container {
    position: relative;
}

.nav-container nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

.nav-container nav ul li a {
    color: black;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.nav-container nav ul li a:hover {
    color: #025d0b;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    z-index: 1001;
}

  main {
  position: relative;
}

main h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  text-align: center;
  margin-top: 40px;
  color: #1a3e72; 
}

.opis-naslov {
  text-align: center;
  font-style: italic;
  font-size: clamp(16px, 2vw, 20px);
  color: #4a6fa5; 
  margin: 10px 0 40px 0;
}


#izbor {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.red {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
  border-radius: 8px;
}

.red.obrnut {
  flex-direction: row-reverse;
}

.red:nth-child(1) {
  background-color: #f2f9ff; 
}

.red:nth-child(2) {
  background-color: #f2f9ff;
}

.red:nth-child(3) {
  background-color: #f2f9ff;
}

.slika img {
  width: 100%;
  max-width: 450px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.sadrzaj {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sadrzaj h2 {
  font-size: 28px;
  margin-bottom: 12px;
  font-family: Arial, sans-serif;
  color: #333;
}

.sadrzaj p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #444;
}

.sadrzaj button {
  align-self: center;
  padding: 12px 24px;
  font-size: 16px;
  background-color: #0288d1;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sadrzaj button:hover {
  background-color: #01579b;
}
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-container {
    position: absolute;
    top: 100%;
    right: 10px;
    width: 250px;
    background-color: #ffffff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    opacity: 0;
    padding: 0;
    z-index: 999;
  }

  .nav-container.active {
    max-height: 500px;
    opacity: 1;
  }

  .nav-container nav ul {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding: 20px;
  }

  .nav-container nav ul li {
    width: 100%;
    text-align: right;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .nav-container nav ul li:last-child {
    border-bottom: none;
  }

  .nav-container nav ul li a {
    color: #333;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .nav-container nav ul li a:hover {
    background-color: #e0f2f1;
    color: #025d0b;
  }

    
  .red, .red.obrnut{
    flex-direction: column;
  }
}
footer {
    background-color: #f2f9ff;
    color: #333;
    padding: 40px 20px 20px;
    font-family: Arial, sans-serif;
    border-top: 2px solid #0288d1;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-left, .footer-middle, .footer-right, .footer-sestrinska {
    flex: 1;
    min-width: 250px;
}

.footer-left h3 {
    color: #025d0b;
    margin-bottom: 10px;
}

.footer-middle h4,
.footer-right h4,
.footer-sestrinska h4 {
    margin-bottom: 12px;
    color: #0288d1;
}

.footer-middle ul {
    list-style: none;
    padding: 0;
}

.footer-middle ul li {
    margin-bottom: 8px;
}

.footer-middle ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-middle ul li a:hover {
    color: #025d0b;
}

.footer-sestrinska a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-sestrinska a:hover {
    color: #025d0b;
}

.footer-sestrinska p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #777;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left, .footer-middle, .footer-right, .footer-sestrinska {
        margin-bottom: 20px;
    }
}
